﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;
using IDAL;
using System.Reflection;

namespace DALFactory
{
    /// <summary>
    /// 数据操作类工厂
    /// </summary>
    public static partial class DALFactory
    {
        private static readonly string AssemblyPath = ConfigurationManager.AppSettings["AssemblyPath"];
        private static readonly string NamespacePath = ConfigurationManager.AppSettings["NamespacePath"];
      
        private static object CreateClass(string classPath)
        {
            var assembly=Assembly.Load(AssemblyPath);
            return assembly.CreateInstance(classPath);
        }       
    }
}
